/**
 * 门店管理路由
 */
export default [
  {
    path: '/store',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'list',
        name: 'StoreList',
        component: () => import('@/views/store/StoreList.vue'),
        meta: { title: '门店列表' }
      },
      {
        path: 'dashboard',
        name: 'StoreDashboard',
        component: () => import('@/views/store/StoreDashboard.vue'),
        meta: { title: '门店看板' }
      },
      {
        path: 'detail/:id',
        name: 'StoreDetail',
        component: () => import('@/views/store/StoreDetail.vue'),
        meta: { title: '门店详情' }
      },
      {
        path: 'staff',
        name: 'StoreStaff',
        component: () => import('@/views/store/StoreStaff.vue'),
        meta: { title: '门店员工' }
      },
      {
        path: 'performance',
        name: 'StorePerformance',
        component: () => import('@/views/store/StorePerformance.vue'),
        meta: { title: '门店业绩' }
      },
      {
        path: 'inventory',
        name: 'StoreInventory',
        component: () => import('@/views/store/StoreInventory.vue'),
        meta: { title: '门店库存' }
      },
      {
        path: 'delivery',
        name: 'StoreDelivery',
        component: () => import('@/views/store/StoreDelivery.vue'),
        meta: { title: '门店配送' }
      },
      {
        path: 'settings',
        name: 'StoreSettings',
        component: () => import('@/views/store/StoreSettings.vue'),
        meta: { title: '门店设置' }
      },
      {
        path: 'pivot-analysis',
        name: 'StorePivotAnalysis',
        component: () => import('@/views/store/StorePivotAnalysis.vue'),
        meta: { title: '门店数据透视' }
      }
    ]
  }
]

